//
//  FuXiCollectionViewCell.m
//  10-10
//
//  Created by 钟纪旺 on 16/12/5.
//  Copyright © 2016年 zjw. All rights reserved.
//

#import "FuXiCollectionViewCell.h"

@implementation FuXiCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if(self)
    {
        self.scroll = [[UIScrollView alloc]initWithFrame:self.bounds];
        self.scroll.maximumZoomScale = 4;
        self.scroll.minimumZoomScale = 1;
        self.scroll.delegate = self;
        [self addSubview:self.scroll];
        self.imagVi = [[UIImageView alloc] initWithFrame:CGRectMake(0,self.frame.size.height / 4, self.frame.size.width, self.frame.size.height / 2)];
        [self.scroll addSubview:self.imagVi];
    }
    return self;
}

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView
{
    return self.imagVi;
}

@end
